<template>
  <view class="goods">
    <image class="goods-logo" :src="goodsDetail.cover" mode="widthFix"></image>
    <view class="goods-info">
      <view class="title">
        {{goodsDetail.title}}
      </view>
      <!-- <view class="sales" v-show="goodsDetail.sales_volume > 0">
        月销：{{goodsDetail.sales_volume}}
      </view> -->
      <view class="price">
        <view class="hot-large">
          <rich-text :nodes="$mUtil.priceBigSmall(goodsDetail.min_market_price)"></rich-text>
        </view>
        <view class="small">¥ {{ goodsDetail.min_sale_price }}</view>
      </view>
    </view>
  </view>
</template>

<script>
  export default {
    name: 'shop-goods',
    props: {
      goodsDetail: {
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {

      }
    },
    methods: {

    }
  }
</script>

<style lang="scss" scoped>
  .goods {
    width: 100%;
    display: flex;
    padding-bottom: 20rpx;
    margin-bottom: 25rpx;

    .goods-logo {
    
      flex-shrink: 0;
      margin-right: 27rpx;
	  width: 154rpx;
	  height: 154rpx !important;
	  border-radius: 19rpx 19rpx 19rpx 19rpx;
    }

    .goods-info {
      // flex: 1;
      // width: 0;
	  display: flex;
	  flex-direction: column;
	  justify-content: space-between;
	  align-items: flex-start;
	  width: 346rpx;
	  height: 154rpx;
	  padding:8rpx 0;
	  box-sizing: border-box;
      .title {
        width: 100%;
        display: -webkit-box;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
		font-weight: 600;
		font-size: 27rpx;
		color: #333333;
		line-height: 38rpx;
		
		
      }

      .sales {
        margin-bottom: 5rpx;
      }

      .price {
        display: flex;
        align-items: center;

        .hot-large {
		  font-weight: 600;
		  font-size: 27rpx;
		  color: #FF211F;
		  line-height: 38rpx;
         
        }

        .small {
          text-decoration: line-through;
		  font-weight: 400;
		  font-size: 23rpx;
		  color: #BCBCBC;
		  line-height: 17rpx;
		  margin-left: 8rpx;
		  
		  
        }
      }
    }
  }
</style>
